package otherPractice;

public class Father implements BaseInterface{

    private Children children;

    public  Father(Children children){
        this.children = children;
    }

    public void sayHello(){

        System.out.println("--------hello -----------");
    }

    public int sum(int a,int b){
        int result =  a + b;
        return result;
    }


    @Override
    public void sayHello(HelloWorld helloWorld) {

    }



    public void askChildren(String question){

        new Thread(new Runnable() {
            @Override
            public void run() {
                children.doQuestion(Father.this,question);
            }
        }).start();

    }


    @Override
    public String callBackResult(String answer) {
        return null;
    }
}
